<template>
  <div>
    <h1>{{ title }} {{ list.length }}</h1>
    <ul>
      <li v-for="v in list" :key="v.id">
        <input type="checkbox" v-model="v.isChecked" />
        <b>{{ v.title }}</b>
        <span @click="del(v.id)">X</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ['list', 'title'],
  methods: {
    del(id) {
      this.$emit('qwe', id)
    }
  }
}
</script>